<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAppArticleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('app_article', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('typeid')->index();
            $table->string('title',50);
            $table->string('shorttitle',50);
            $table->string('keywords',80);
            $table->string('description');
            $table->string('tag',30);
            $table->string('flag',30);
            $table->string('lit_image',150);
            $table->string('source',20);
            $table->longText('content');
            $table->string('writer',20);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('app_article');
    }
}
